/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package millenium3dchess;

/**
 *
 * @author Kenneth
 */
public class Gamevector {
    private int z,y,x;
    //z is the board level, y is the letter position, x is the number position
    public Gamevector(int z, int y, int x){
        this.z = z;
        this.y = y;
        this.x = x;
    }
    
    public int getX(){
        return x;
    }
    
    public int getY(){
        return y;
    }
    
    public int getZ(){
        return z;
    }
    
    @Override
    public String toString(){
        String temp;
        switch (y) {
                case 0:
                    temp = "a";
                    break;
                case 1:
                    temp = "b";
                    break;
                case 2:
                    temp = "c";
                    break;
                case 3:
                    temp = "d";
                    break;
                case 4:
                    temp = "e";
                    break;
                case 5:
                    temp = "f";
                    break;
                case 6:
                    temp = "g";
                    break;
                case 7:
                    temp = "h";
                    break;
                default:
                    temp = "error";
                    break;
            }
        return (z + 1) + temp + (x + 1);
    }
}
